# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class CategoryItem(scrapy.Item):
    """类型表"""
    m_cate_name = scrapy.Field()           # 类型名
    m_cate_id = scrapy.Field()             # 类型id


class MhInfoItem(scrapy.Item):
    """"漫画基本信息"""
    m_create_time = scrapy.Field()      # 记录创建时间戳 默认为0
    m_status = scrapy.Field()           # 记录的状态 默认为1:正常 0:已删除
    m_id = scrapy.Field()               # 漫画id
    m_title = scrapy.Field()            # 标题
    m_category = scrapy.Field()         # 类型
    m_arthor = scrapy.Field()           # 作者
    m_description = scrapy.Field()      # 简介
    m_area = scrapy.Field()             # 地区
    m_image = scrapy.Field()            # 封面图

    referer = scrapy.Field()            # 来源地址


class MhUpdateItem(scrapy.Item):
    """漫画更新表"""
    m_create_time = scrapy.Field()      # 记录创建时间戳 默认为0
    m_status = scrapy.Field()           # 记录的状态 默认为1:正常 0:已删除
    m_id = scrapy.Field()               # 漫画id
    m_state = scrapy.Field()            # 更新状态
    m_update_time = scrapy.Field()      # 最近更新时间
    m_latest = scrapy.Field()           # 更新章节


class MhSectionInfoItem(scrapy.Item):
    """漫画章节"""
    m_create_time = scrapy.Field()      # 记录创建时间戳 默认为0
    m_status = scrapy.Field()           # 记录的状态 默认为1:正常 0:已删除
    m_id = scrapy.Field()               # 漫画id
    m_section_id = scrapy.Field()       # 章节id  默认:0 没有获取到
    m_title = scrapy.Field()            # 章节标题
    m_copyright = scrapy.Field()        # 特殊标记 默认 1:正常  0:有版权纠纷


class MhImageItem(scrapy.Item):
    """漫画图片"""
    m_create_time = scrapy.Field()      # 记录创建时间戳 默认为0
    m_status = scrapy.Field()           # 记录的状态 默认为1:正常 0:已删除
    m_id = scrapy.Field()               # 漫画id
    m_section_id = scrapy.Field()       # 漫画章节id
    m_image_id = scrapy.Field()         # 图片地址id
    m_image = scrapy.Field()            # 图片的所在路径

    referer = scrapy.Field()            # 来源地址
